package com.jiuyi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jiuyi.entity.Dish;
import com.jiuyi.entity.DishFlavor;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * DATA: 2022/10/19
 * Author: 晨夕
 */
@Mapper
public interface DishFlavorMapper extends BaseMapper<DishFlavor> {
    //获取口味名和详细口味
    List<DishFlavor> selectNameValueById(@Param("id") Long id);
    //根据dish_id删除口味
    void deleteByDishId(@Param("id") Long id);
    //批量删除口味
    void deleteByIds(@Param("ids")Long[] ids);
    //根据dishId查询id
    List<Long> selectDishIdByid(@Param("id")Long id);
}
